/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.i.kotionokyurievna.jewelryweb.facade;

import java.io.Serializable;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import ua.i.kotionokyurievna.jewelryweb.dao.PersonDAO;
import ua.i.kotionokyurievna.jewelryweb.entities.Person;

/**
 *
 * @author Kateryna_Reznik
 */
@Stateless
public class PersonFacadeImpl implements PersonFacade, Serializable{

    @EJB
    private PersonDAO personDAO;
 
    @Override
    public Person findPersonByLogin(String login) {
        return personDAO.findPersonByLogin(login);
    }
    
    @Override
    public void save(Person person) {
        personDAO.savePerson(person);
    }
    
}
